<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link rel="stylesheet" href="resource/css/bootstrap.css">
    <script src="resource/js/jquery-3.2.1.js"></script>
    <script src="resource/js/bootstrap.js"></script>
    <script type="text/javascript" src="/resource/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form method="post" action="add">
        <table class="table">
            <tr>
                <td colspan="2">有效期:
                    <input type="date" name="dtime">
                </td>
            </tr>
            <tr>
                <td>姓名:
                    <input type="text" name="name">
                </td>
                <td>省市:
                    <input type="text" name="city">
                </td>
            </tr>
            <tr>
                <td>性别:
                    <select name="sex">
                        <option value="">请选择</option>
                        <option value="男">男</option>
                        <option value="女">女</option>
                    </select>
                </td>
                <td>执业资格证书编号:
                    <input type="text" name="zigezhengid">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    会计师分类:
                    <select name="shejishiid"></select>
                </td>
            </tr>
            <tr>
                <td >注册号:
                    <input type="text" name="zhucehao">
                 </td>
                <td>
                    单位:
                    <input type="text" name="danwei">
                </td>
            </tr>

            <tr>
                <td colspan="">
                    <input type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>

<script>
    $.post("selectType",function(msg){
        var str="<option value=''>请选择</option>";
        for(var i in msg){
            str+="<option value='"+msg[i].id+"'>"+msg[i].aname+"</option>";
        }
        $("[name='shejishiid']").html(str);
    })
</script>
</body>


</html>